package com.arron.adapter.objectdapter;

public class Phone {
    public void charging(IVoltage5V v) {
        int outV = v.output5V();
        if (outV == 5) {
            System.out.println("充电中");
        } else if (outV > 5) {
            System.out.println("电压过高");
        }
    }
}
